<?php require_once 'header.php';?>
<div id="content">
<body>

     <script type="text/javascript" language="javascript" src="../js/jquery-1.7.1.js"></script>
        <script type="text/javascript" language="javascript" src="../DataTables-1.8.2/media/js/jquery.js"></script>
		<script type="text/javascript" language="javascript" src="../DataTables-1.8.2/media/js/jquery.dataTables.js"></script>
		<script type="text/javascript" charset="utf-8" src="../DataTables-1.8.2/extras/TableTools/media/js/ZeroClipboard.js"></script>
		<script type="text/javascript" charset="utf-8" src="../DataTables-1.8.2/extras/TableTools/media/js/TableTools.js"></script>
	    <script type="text/javascript" charset="utf-8" src="../DataTables-1.8.2/extras/TableTools/media/js/TableTools.min.js"></script> 
	         
<script type="text/javascript" charset="utf-8">
var n=3;
$(document).ready(function() {
    $('#data').dataTable( {
        "aoColumns": [ 
                      { "sWidth": "1%" },
                      { "sWidth": "10%" },
                      { "sWidth": "10%"},
                      { "sWidth": "15%"},
                      { "sWidth": "10%" },
                      //{
                       // "mDataProp": "Action",
                    	 // "sWidth": "15%",
                      //  "sDefaultContent": '<a href="" title=""><img src="./images/icons/icon_edit.png" alt="Edit" /></a>    <a href="actions/freischalten.php?id='+n+'" title=""><img src="./images/icons/icon_approve.png" alt="Approve" /></a>    <a href="" title=""><img src="./images/icons/icon_unapprove.png" alt="Unapprove" /></a>    <a href="" title=""><img src="./images/icons/icon_delete.png" alt="Delete" /></a>',
                        
                       
                      //}
                      
                    ],
    	"bJQueryUI": true,
    	"aaSorting": [],
        "bProcessing": true,
        "sPaginationType": "full_numbers",
        "bServerSide": true,
        "bInfo": true,
        "fnRowCallback": function( nRow, aData, iDisplayIndex ) {
			/* Append the grade to the default row class name */
			if ( aData[4] == "0" )
			{
				$('td:eq(4)', nRow).html( '<b>Super User</b>' );
				$('td:eq(4)', nRow).css("color", "red");
			}else if(aData[4] == "1"){
				$('td:eq(4)', nRow).html( '<b>Normale User</b>' );
				$('td:eq(4)', nRow).css("color", "green");

				}
			
			return nRow;
		},
      
        "sAjaxSource": "admin_list_server_processing.php"
    } );
} );

</script>
<!-- Table styles start -->           
                <div class="container">
                	<div class="conthead">
                		<h2>User</h2>
                    </div>
                	<div class="contentbox" >
                        <table id="data" cellpadding="0" cellspacing="0" border="0" class="display">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>Name</th>
                                    <th>Vorname</th>
                                    <th>E-Mail</th>
                                    <th>Rechte</th>                                   
                                </tr>
                            </thead>
                            <tbody>
                            
                              
                                 
                            </tbody>
                        </table>
                        <div class="extrabottom">
                        	
                        
                        </div>
                    </div>
                </div>
<!-- Table styles end -->  
</body>
</div>
</body>
</html>

